package com.alex.core.config;

/**
 * @author: xc
 * @ClassName: FeignDateFormatRegister
 * @Date: 2019/12/31 11:05
 * @Description:
 */
//@Component
//public class FeignDateFormatRegister implements FeignFormatterRegistrar {
//
//    public FeignDateFormatRegister() {
//    }
//
//    @Override
//    public void registerFormatters(FormatterRegistry registry) {
//        registry.addConverter(Date.class, Date.class, new Date2StringConverter());
//    }
//
//    private class Date2StringConverter implements Converter<Date, Date> {
//        @Override
//        public Date convert(Date source) {
//            DateUtils.(source);
//            return  DateUtils.format(source);
//        }
//    }
//}
